title="分类列表页"
url = "/cate_list.html"
layout="default"
==

{% partial 'common/breadCrumb' page='' %}

<div class="muneListCont">
	<ul class="fatherMuneUl">
		<!-- root category-->
		{% for cate in catalog.categories() %}
		<li class="muneListItem">
		{% set parent_total = catalog.getCategoryProducts(cate.id) %}
			{% if cate.children %}
				<div class="cartItemHead aclnk aclnkBlack" onclick="sliderShow1(this,'.muneListItem')">{{ cate.name }}({{ parent_total['total']?:0 }})</div>
			
			{% else %}
				<div class="cartItemHead" onclick="sliderShow1(this,'.muneListItem')"><a href="{{cate.url}}">{{ cate.name }}({{ parent_total['total']?:0 }})</a></div>
			{% endif %}

			{% if cate.children %}
			<ul class="childMuneUl sliderShow">
			 <!-- second category -->	
			 	
					{% for cat in cate.children %}
						{% set child_total = catalog.getCategoryProducts(cat.id) %}
						<li><a class="arrow_r3" href="{{ cat.url }}">{{ cat.name }}({{ child_total['total']?:0 }})</a></li>	
						
					{% endfor %}
			
				
			</ul>
		{% endif %}	
		</li>
		{% endfor %}
		
	</ul>
</div>